package com.mysite.springcloud.demo.api.facade;

import com.mysite.springcloud.demo.api.vo.OrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-order")
public interface OrderFacade {

    @RequestMapping(value = "/order/list", method = RequestMethod.GET)
    List<OrderVo> getOrdersByUser(@RequestParam Long userId);
}
